//app.js
App({
  data: {
    //servsers: "https://cuishoutestnew.xiaohuangkeji.com",//服务器地址
    //servsers: "https://fkb-ws-api.xiaohuangkeji.com:8097",//服务器地址
    servsers: "https://oa.gtvaluer.com:16170",//服务器地址
    //servsers: "http://localhost:8088/",//服务器地址
    //fileUpload: "https://oa.diyanglawfirm.com/wechat/toUploadVoice.shtml?collectionCaseId=",
    //fileUpload: "https://oa.diyanglawfirm.com/wechat/toUploadVoiceDyKj.shtml?collectionCaseId=",
    fileUpload: "https://oa.diyanglawfirm.com/wechat/toUploadVoiceDy.shtml?collectionCaseId=",

    amapGeo: "https://restapi.amap.com/v3/geocode/geo", //高德地理编码
    amapReGeo: "https://restapi.amap.com/v3/geocode/regeo", //高德逆地理编码
    amapRound: "https://restapi.amap.com/v3/place/around",
    amapDistrict: "https://restapi.amap.com/v3/config/district",
    //qqmapKey: "nonUse——SZBBZ-ISIKR-CJCWK-WFRX7-OMLJS-U5BXY",//腾讯地图key
    amapKey: "a8cce93c6f85caeb64ff946bf2e602e2",//高德地图key
    amapWebServiceKey: "c5ecb34b6fdb21db49d1625c9afb4a2b",//高德地图WebService Api key
  },
  onLoad: function (options) {
    console.log("进这里了，onLoad()");
  },
  onLaunch: function () {
    //验证是否登录
    var token = wx.getStorageSync('token')
    if (token == undefined || token == "") {
      //需要重新登录
      wx.redirectTo({
        url: 'pages/login/login'
      });
      return;
    }
  },
  globalData: {
    userInfo: null
  }
})
